const deepseekService = require('../services/deepseekService');

const sendChat = async (req, res) => {
    try {
        const completion = await deepseekService.sendChat(req.body.content);
        res.send({
            code: 200,
            data: {
                content: req.body.content,
                deepseek: completion
            },
            msg: "操作成功"
        })
    } catch (error) {
        res.send({
            code: 500,
            error: error.message,
            msg: "操作失败"
        })
    }
};

module.exports = {
    sendChat,
};
